<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-info" href="#"><i class="icon-key"></i> 权限设置</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
		<a class="btn btn-danger" href="#"><i class="icon-remove"></i> 删除</a>
	</div>
</div>
<table cellpadding="1" cellspacing="1" class="table table-bordered">
	<thead>
		<tr class="ui-widget-header">
			<th>名称</th>
			<th>机构</th>
			<th>创建时间</th>
			<!-- <th>是否默认</th> -->
			<th style="width: 75px;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as role>
	<tr class="ui-widget-content">
		<td>${role.name}</td>
		<td>${role.ocn}</td>
		<td>${role.ct?string("yyyy-MM-dd HH:mm")}</td>
		<!-- <td<#'if role.isDefault> style="color: red; font-weight: bold;"</#'if>>
			<@mt.YesOrNo value=((role.isDefault)!"") r=false />
		</td> -->
		<td>
			<div class="btn-group">
 			<a class="btn btn-xs btn-info" href="#" onclick="javascript: editHandle_role('${role.code}','${role.oc}'); return false;">
				<i class="icon-key"></i></a> 
			<a class="btn btn-xs btn-success" href="#" onclick="javascript: sys_load_handle('organRole-edit_${role.code}'); return false;" title="编辑">
				<i class="icon-pencil"></i></a>
			<a class="btn btn-xs btn-danger" href="#" onclick="javascript: deleteRole_role('${role.code}', '${role.name}'); return false;" title="删除">
				<i class="icon-remove"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryRole_role'/>